import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
  state: {// 全局对象
    routers: []
  },
  mutations: {
    initRouters (state, data) {
      state.routers = data
    }
  },
  // 异步执行
  actions: {}
})
